<?php
class IndexController extends Pidguin_Controller_Public_Action
{
	
	public function indexAction()
	{		
		$select = Model_Page::getInstance()->select();
		$select->where('name = "home"');
		$row = Model_Page::getInstance()->fetchRow($select);
		
		if (!$row) {
			throw new Zend_Controller_Action_Exception('Page not found');
		}
		
		$this->view->page = $row;
	}
}